﻿using System;
using Transformable_Engine_v2.Engine.Graphics;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Super_Management_Mayhem.Content.Spritesheet
{
    public class ResultSheet : SpriteSheetInstance
    {
        private static SpriteSheetInstance _instance;
        public static void LoadContent()
        {
            _instance = new ResultSheet();
        }
        public new static Sprite GetSprite(Enum textureName)
        {
            return _instance.GetSprite(textureName);
        }

        public enum Curtains
        {
            Top,
            TopLeftCorner,
            TopRightCorner,
        }

        public enum Other
        {
            Title,
        }

        public enum Bar
        {
            Top,
            Center,
        }

        public override string SpriteSheetPath
        {
            get
            {
                return "Content/Images/Result.png";
            }
        }

        protected override void LoadSprites()
        {
            AddSprite(Curtains.Top, new TE_Rectangle(0, 0, 4, 2));
            AddEnumList<Curtains>(Curtains.TopLeftCorner, Curtains.TopRightCorner, new TE_Rectangle(0, 2, 4, 4));

            AddSprite(Other.Title, new TE_Rectangle(0, 10, 30, 7.5f));

            AddSprite(Bar.Top, new TE_Rectangle(0, 6, 5, 1.5f));
            AddSprite(Bar.Center, new TE_Rectangle(0, 7.5f, 5, 1));
        }
    }
}